﻿<UserControl x:Class="Atdl4net.Wpf.View.Controls.Slider"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" Name="sliderRoot">
    <Border Name="borderControl" CornerRadius="1" BorderThickness="0" BorderBrush="{Binding BorderBrush, ElementName=sliderRoot}">
        <Grid Name="gridControl" Background="{Binding Background, ElementName=sliderRoot}">
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto"/>
            </Grid.ColumnDefinitions>
            <Slider Grid.Row="0" Grid.Column="0" Name="sliderControl" LargeChange="1" TickPlacement="BottomRight" TickFrequency="1" 
                    IsSnapToTickEnabled="True" HorizontalAlignment="Center" Margin="0,3,0,0" Value="{Binding ElementName=sliderRoot, Path=SelectedIndex}"/>
            <Grid Grid.Row="1" Grid.Column="0" Name="labelArea" Margin="5,0,3,3" />
        </Grid>
    </Border>
</UserControl>
